<?php
/* @var $this HistoryController */
/* @var $model History */
/* @var $form CActiveForm */
?>

<div class="search">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<?php echo $form->label($model,'vote_id'); ?>
        <?php  echo $form->dropDownList($model,'vote_id',CHtml::listData(Vote::model()->findAll(), 'id', 'title'),
                                array('empty'=>'---------全部----------')); ?> 

	<?php echo $form->label($model,'users_id'); ?>
	<?php echo $form->textField($model,'users_id',array('class'=>'input')); ?>

	<?php echo $form->label($model,'ip_address'); ?>
	<?php echo $form->textField($model,'ip_address',array('size'=>20,'maxlength'=>20,'class'=>'input')); ?>

	<?php echo CHtml::submitButton('查 询',array('class'=>'but')); ?>

<?php $this->endWidget(); ?>

</div><!-- search-form -->